import request from "../utils/axios";

// 创建排班{date：日期，userId：用户ID}
export function createSchedule(params) {
  return request.post("/scheduling/create", params);
}

// 获取排班列表{from：开始时间，to：结束时间}
export function getScheduling(params) {
  return request.get("/scheduling", params);
}

// 用户
export function getUser() {
  return request.get("/users" );
}